home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7803 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: #include --> Question
  5. Date: 28 Feb 1996 18:38:32 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4h2si8$1bf@solutions.solon.com>
  8. References: <4gvp2c$sdr$1@mhafc.production.compuserve.com> <4h1d2l$4n3@pyrrhus-f.hrz.tu-chemnitz.de>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <4h1d2l$4n3@pyrrhus-f.hrz.tu-chemnitz.de>,
  12. Hans Steffani <hfst@hrz.tu-chemnitz.de> wrote:
  13. ><Matt> mmartone@mysite.com <76002.702@CompuServe.COM> writes:
  14. >>    How do i include a file with the #include statement?  the 
  15. >>file is "c:\snappy\1.gif".
  16.  
  17. >with 
  18. > #include "c:\scanppy\1.gif"
  19.  
  20. >However I am not sure whether you like the errors occuring
  21. >when you compile the contents of a gif file.
  22.  
  23. Heh.
  24.  
  25. Unfortunately, your answer is clear, concise, and wrong.
  26.  
  27. The character '\' introduces undefined behavior in a header file name.
  28. Since the only system in wide use that ever uses this character for
  29. a directory separator also accepts the more conventional '/' as a
  30. separator, it is probably better to write
  31.  
  32.     #include "c:/scanppy/1.gif"
  33.  
  34. (Although I share Hans' skepticism about the probability of a file named
  35. foo.gif containing valid C code.)
  36.  
  37. -s
  38. -- 
  39. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  40. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  41. FUCK the communications decency act.  Goddamned government.  [literally.]
  42. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  43.